package factorymodel.simplefactorymodel;

import factorymodel.simplefactorymodel.pojo.car;
import factorymodel.simplefactorymodel.factory.carSimpleFactory;

public class simpleFactoryModel {
    public static void main(String[] args) {
        carSimpleFactory carSimpleFactory = new carSimpleFactory();
        car huaWeiCar = carSimpleFactory.createCar("huaWei");
        car xiaoMicar = carSimpleFactory.createCar("xiaoMi");
        huaWeiCar.run();
        xiaoMicar.run();
    }

}
